import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入elementplus及样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入elementplus自带图标
import * as ElIconModules from '@element-plus/icons-vue'
// 引入elementplus国际化资源
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'animate.css'

// 引入自己模拟的mock服务器(此处开启后，会和el-upload冲突，导致图片无法上传，待解决！！！)
// import './mock/mockServe'

const app = createApp(App)

//  统一注册elementplus自带el图标
for (let iconName in ElIconModules) {
    app.component(iconName, ElIconModules[iconName])
}

// 11111111111
app.use(store)
    .use(router)
    .use(ElementPlus, {locale: zhCn})
    .mount('#app')
